package com.sgb.kjwl.model.entity.enterprise;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.swgk.core.base.model.entity.VideoBean;
import com.sgb.kjwl.model.entity.transport.SingleItemConstant;

import java.util.List;

public class PatentEntity implements MultiItemEntity {

    /**
     * applyTime : 0
     * authTime :
     * category : 0
     * categoryName :
     * companyAuthTime : 0
     * companyId : 0
     * companyName :
     * companyNo :
     * contactNumber :
     * contacts :
     * createCom :
     * createTime : 0
     * createUser :
     * expiresTime : 0
     * explain :
     * headImage :
     * id : 0
     * img :
     * industry :
     * industryName :
     * logo :
     * name :
     * price : 0
     * publishType : 0
     * realName :
     * registrationNo :
     * settledTime : 0
     * status : 0
     * talentStatus : 0
     * telPhone :
     * updateTime : 0
     * userAuthTime : 0
     * userId : 0
     */

    private long applyTime;
    private String authTime;
    private long category;
    private String categoryName;
    private long companyAuthTime;
    private long companyId;
    private String companyName;
    private String companyNo;
    private String contactNumber;
    private String contacts;
    private String createCom;
    private long createTime;
    private String createUser;
    private long expiresTime;
    private String explain;
    private String headImage;
    private long id;
    private String img;
    private String industry;
    private String industryName;
    private String logo;
    private String name;
    private double price;
    private int publishType;
    private String realName;
    private String registrationNo;
    private long settledTime;
    private boolean status;
    private int talentStatus;
    private String telPhone;
    private long updateTime;
    private long userAuthTime;
    private long userId;
    private String label;
    private List<VideoBean> videos;

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public long getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(long applyTime) {
        this.applyTime = applyTime;
    }

    public String getAuthTime() {
        return authTime;
    }

    public void setAuthTime(String authTime) {
        this.authTime = authTime;
    }

    public long getCategory() {
        return category;
    }

    public void setCategory(long category) {
        this.category = category;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public long getCompanyAuthTime() {
        return companyAuthTime;
    }

    public void setCompanyAuthTime(long companyAuthTime) {
        this.companyAuthTime = companyAuthTime;
    }

    public long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(long companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getCreateCom() {
        return createCom;
    }

    public void setCreateCom(String createCom) {
        this.createCom = createCom;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public long getExpiresTime() {
        return expiresTime;
    }

    public void setExpiresTime(long expiresTime) {
        this.expiresTime = expiresTime;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getPublishType() {
        return publishType;
    }

    public void setPublishType(int publishType) {
        this.publishType = publishType;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRegistrationNo() {
        return registrationNo;
    }

    public void setRegistrationNo(String registrationNo) {
        this.registrationNo = registrationNo;
    }

    public long getSettledTime() {
        return settledTime;
    }

    public void setSettledTime(long settledTime) {
        this.settledTime = settledTime;
    }

    public boolean getStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public int getTalentStatus() {
        return talentStatus;
    }

    public void setTalentStatus(int talentStatus) {
        this.talentStatus = talentStatus;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public long getUserAuthTime() {
        return userAuthTime;
    }

    public void setUserAuthTime(long userAuthTime) {
        this.userAuthTime = userAuthTime;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public List<VideoBean> getVideos() {
        return videos;
    }

    public void setVideos(List<VideoBean> videos) {
        this.videos = videos;
    }

    @Override
    public int getItemType() {
        //普通列表信息
        int itemType = SingleItemConstant.TYPE_ONE;
        if (videos != null && videos.size() == 1) {
            //单图
            itemType = SingleItemConstant.TYPE_THREE;
        } else if (videos != null) {
            //多图
            itemType = SingleItemConstant.TYPE_TWO;
        }
        return itemType;
    }
}
